import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
// import get from '@dfeidao/atom-mobile/local/get';

import a002 from './a002';
import a003 from './a003';
export default async function a007(fd: IFeidaoAiMobile, e: {
	i: number,
	ref: { props: { heading: string } }
	from: number
}) {
	// 头部切换
	const head = e.ref.props.heading;
	// const user = await get(fd, 'user_who') as {
	// 	params: {
	// 		teacher_name: string;
	// 		productid: string;
	// 		teacher_no: string;
	// 	}
	// };
	if (head === '未审批' || e.i === 0) {
		a002(fd);
	} else if (head === '已审批' || e.from === 0) {
		a003(fd);
	}

}
